package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-08-23
 * Time: 22:00
 * name: 显示图书
 */
public class DisplayOperation implements IOperation {

    @Override
    public void way(BookList bookList) {
        System.out.println("显示所有图书! ");
        for (int i = 0; i < bookList.getCountsize(); i++) {
            Book book = bookList.getpos(i);
            System.out.println(book);
        }

    }
}
